package STUDENT.NGUYENSANG.OOPs.WHILE_DO;

public class Moduls {
	public int DemChan(Over O)
	{
		int counter=0;
		int i=0;
		while(i<O.getSo())
		{
			if(i%2==0)
			{
				counter++;
				i++;
			}
			else i++;
		}
		return counter;
		
	}
	public int Demle(Over O)
	{
		int counter=0, i=0;
		while(i<O.getSo())
		{
			if(i%2!=0)
			{
				counter++;
				i++;
			}
			else i++;
		}
		return counter;
	}
}
